<extend name="Public:base"/>

<block name="main">
    <load href="__PUBLIC__/js/swfupload.js"/>
    <script src="__PUBLIC__/js/Sortable.min.js"></script>
    <div id="yzh-content">
        <div class="main-title">
            <h2>微名片</h2>
        </div>

        <form id="myform" action="{:U('Poster/add')}" method="post" class="form-horizontal" enctype="multipart/form-data">
            <div class="form-group">
                <label class="control-label col-md-2">名称</label>
                <div class="col-md-5">
                    <input type="text" name="title" class="form-control" value="{$data['title']}" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">图片</label>
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            最多同时可以上传10张
                            <span>(为获得良好显示效果，建议图片尺寸宽640像素  高960像素)</span>
                            <div class="pull-right">
                                <a class="btn btn-xs btn-info" href="javascript:swfupload('content_uploadfile', 'content', '上传图片',1,1,0,1,'jpeg,jpg,png,gif',3,1,'{$yzh_auth}',up_images,nodo);">图片上传</a>
                            </div>
                        </div>
                        <div id="content_images" class="imagesList panel-body">
                            <input type="hidden" name="content[]" value=""/>
                            <input type="hidden" name="content_name[]" value="" />
                        </div>
                    </div>

                    <script>
                        Sortable.create(content_images, {
                            handle: "img",
                            animation: 150
                        });
                    </script>
                </div>
            </div>


            <div class="form-actions">
                <input type="submit" value="确认" class="btn btn-sm btn-primary">
                <input type="reset" value="重置" class="btn btn-sm btn-primary">
            </div>
        </form>

    </div>

</block>